const promise = new Promise((resovle, reject) => {
  resovle('hello');
  reject('reject');
});

promise.then(
  (result) => {
    console.log(result);
  },
  (error) => {
    console.log(error);
  }
);

// 更改后的状态不能再次改变,但是可以多次调用
promise.then((result) => {
  console.log(result);
});

promise.then((result) => {
  console.log(result);
});

promise.then((result) => {
  console.log(result);
});
